﻿using System.Data;
using DAL;

namespace BLL
{
    public class BllOrderBuy
    {
        #region[Get-Data]
        public DataTable GetOrderBuy(string keywords)
        {
            return DalOrderBuy.GetOrderBuy(keywords);
        }
        public DataTable GetOrderBuyDetailEdit(int OrderBuy_Id, int Flag)
        {
            return DalOrderBuy.GetOrderBuyDetailEdit(OrderBuy_Id, Flag);
        }
        public DataTable GetOrderBuyDetailSum(int OrderBuy_Id, int Flag)
        {
            return DalOrderBuy.GetOrderBuyDetailSum(OrderBuy_Id, Flag);
        }
        public DataTable GetOrderBuyDetailEditTmep(int Flag, int Users_Id)
        {
            return DalOrderBuy.GetOrderBuyDetailEditTmep(Flag, Users_Id);
        }
        public DataTable GetOrderBuyDetailEditTmepSum(int Flag, int Users_Id)
        {
            return DalOrderBuy.GetOrderBuyDetailEditTmepSum(Flag, Users_Id);
        }
        public DataTable GetOrderBuyActive(string keywords, int id)
        {
            return DalOrderBuy.GetOrderBuyActive(keywords, id);
        }
        public DataTable GetOrderBuyFillterDate(string DateBegin, string DateEnd)
        {
            return DalOrderBuy.GetOrderBuyFillterDate(DateBegin, DateEnd);
        }
        public DataTable GetOrder_IsUsed(string keywords, int IsUsed, int IsActive)
        {
            return DalOrderBuy.GetOrder_IsUsed(keywords, IsUsed, IsActive);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool Insert(EtOrderBuy obj)
        {
            return DalOrderBuy.Insert(obj);
        }
        public static bool Update(EtOrderBuy obj)
        {
            return DalOrderBuy.Update(obj);
        }
        public static bool Delete(EtOrderBuy obj)
        {
            return DalOrderBuy.Delete(obj);
        }
        public static bool InsertDetail(EtOrderBuyDetail obj)
        {
            return DalOrderBuy.InsertDetail(obj);
        }
        public static bool InsertDetailOrder(EtOrderBuyDetail obj)
        {
            return DalOrderBuy.InsertDetailOrder(obj);
        }
        public static bool DeleteDetail(EtOrderBuyDetail obj)
        {
            return DalOrderBuy.DeleteDetail(obj);
        }
        public static bool UpdateQuanlity(EtOrderBuyDetail obj)
        {
            return DalOrderBuy.UpdateQuanlity(obj);
        }
        public static bool DeleteAdd(EtOrderBuyDetail obj)
        {
            return DalOrderBuy.DeleteAdd(obj);
        }
        public static bool GetOrderCheck(EtOrderBuyDetail obj)
        {
            return DalOrderBuy.GetOrderCheck(obj);
        }
        #endregion
    }
}